<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="../../favicon.ico">

    <title>Dashboard Template for Bootstrap</title>

    <!-- Bootstrap core CSS -->
    <link href="/bootstrap/dist/css/bootstrap.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="/css/main.css" rel="stylesheet">

    <![endif]-->
</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container-fluid">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">Project name</a>
        </div>
        <div id="navbar" class="navbar-collapse collapse">
            <ul class="nav navbar-nav navbar-right">
                <li><a href="#">Dashboard</a></li>
                <li><a href="#">Settings</a></li>
                <li><a href="#">Profile</a></li>
                <li><a href="#">Help</a></li>
            </ul>
            <form class="navbar-form navbar-right">
                <input type="text" class="form-control" placeholder="Search...">
            </form>
        </div>
    </div>
</nav>

<div class="container" >
    <div class="row">
        <h3>添加学生信息</h3>
        <hr>
        <form method="post" action="/students/edit">
            <input type="hidden" name="id" value="{{student._id}}">
            <div class="form-group">
                <label for="exampleInputEmail1">学生姓名</label>
                <input type="search" class="form-control" id="exampleInputEmail1" placeholder="姓名" name="name" value="{{student.name}}">
            </div>
            <div class="form-group">
                <label >性别：</label><br>
                <input type="radio" name="gender" value="1">男
                <input type="radio" name="gender" value="0">女
            </div>

            <div class="form-group">
                <label for="exampleInputEmail2">爱好</label>
                <input type="search" class="form-control" id="exampleInputEmail2" placeholder="爱好" name="hobbies" value="{{student.hobbies}}">
            </div>

            <div class="form-group">
                <label for="exampleInputEmail3">爱吃的水果</label>
                <input type="search" class="form-control" id="exampleInputEmail3" placeholder="爱吃的水果" name="fruits"value="{{student.fruits}}">
            </div>




            <button type="submit" class="btn btn-default">Submit</button>
        </form>
    </div>
</div>


</body>
</html>
